-
Notifications
You must be signed in to change notification settings - Fork 13.5k
tests/ui
: A New Order [9/N]
#142214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
tests/ui
: A New Order [9/N]
#142214
Conversation
r? @davidtwco rustbot has assigned @davidtwco. Use |
This comment has been minimized.
This comment has been minimized.
r? jieyouxu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, one nit, please squash after and I'll r+
//! This test ensures that Rust's allocator maintains the invariant that | ||
//! Box<T> is always non-null, even for zero-sized types and empty allocations. | ||
//! This is crucial for memory safety guarantees in Rust. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this guarantee is overly strong for what this test actually does, it's more like
Check that the default global Rust allocator in combination with
Box
produces a non-null allocation even when the contained type is zero-sized.
Note
Intermediate commits are intended to help review, but will be squashed prior to merge.
Some
tests/ui/
housekeeping, to trim down number of tests directly undertests/ui/
. Part of #133895.